package com.bio.entity.attachemnt;

import java.io.File;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.bio.entity.BaseObject;

@Entity
@Table(name = "table_attachment_attachment")
public class Attachment extends BaseObject{
	private static final long serialVersionUID = -7766299465469914916L;
	
	private transient File file;
	
	private byte[] data;
	
	private String fileFileName;
	
	private String fileContentType;
	
	private Integer size;
	
	
	
	@Column(name="data")
	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	@Column(name="file_name")
	public String getFileFileName() {
		return fileFileName;
	}

	public void setFileFileName(String fileFileName) {
		this.fileFileName = fileFileName;
	}

	@Column(name="file_content")
	public String getFileContentType() {
		return fileContentType;
	}

	public void setFileContentType(String fileContentType) {
		this.fileContentType = fileContentType;
	}

	@Column(name="size")
	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	@Transient()
	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}
}
